﻿
using Preactor.ObjectModel.Entities;

namespace Preactor.ObjectModelExtensions
{
    public static class RecordExtensions
    {
        public static void EvaluateRecord(this PreactorRecord record)
        {
            IPreactor preactor = record.PreactorObjectModel.Preactor;
            preactor.EvaluateRecord(record.FormatNumber, record.RecordNumber);
        }

        public static void UpdateRecord(this PreactorRecord record)
        {
            IPreactor preactor = record.PreactorObjectModel.Preactor;
            preactor.UpdateRecord(record.FormatNumber, record.RecordNumber);

            // If we have a child record we should call UpdateChild
        }
    }
}